package course.dao;

import course.pojo.entity.Admin;

import java.sql.Connection;
import java.util.List;

/**
 * @author HLF
 * @date 2022/6/30 19:43
 */
public interface AdminDao {
    Admin getById(Integer aid, Connection connection);

    /**
     * @return 返回自增主键
     */
    int addAdmin(Admin admin, Connection connection);

    int updateById(Admin admin, Connection connection);

    int deleteById(Integer aid, Connection connection);

    List<Admin> getList(Connection connection);

    /**/

    Admin getByAuser(String auser,Connection connection);
}
